package itsm.isperp.module.entity.knowledge2;

import itsm.isperp.workflow.domain.BaseProcessBean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/// <summary>
/// 描述:kng_knowledge_item
/// 创建者:zhouhg
/// 创建时间:2013/6/26
/// </summary>
@Entity
@Table(name = "kng_knowledge_item2")
public class KngKnowledgeItem2 extends BaseProcessBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Column
	private String title;

	@Column
	private String keyword;

	@Column
	private String contents;

	@Column
	private String status;

	@Column
	private String accessRight;

	@Column
	private Integer readTimes;

	@Column
	private Integer commentaryTimes;

	@Column
	private String kngKnowledgeCategoryId;

	@Column
	private Date publishDate;

	private String releaseMethod;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAccessRight() {
		return accessRight;
	}

	public void setAccessRight(String accessRight) {
		this.accessRight = accessRight;
	}

	public Integer getReadTimes() {
		if (readTimes != null) {
			return readTimes;
		} else {
			return 0;
		}
	}

	public void setReadTimes(Integer readTimes) {
		this.readTimes = readTimes;
	}

	public Integer getCommentaryTimes() {
		if (commentaryTimes != null) {
			return commentaryTimes;
		} else {
			return 0;
		}

	}

	public void setCommentaryTimes(Integer commentaryTimes) {
		this.commentaryTimes = commentaryTimes;
	}

	public String getKngKnowledgeCategoryId() {
		return kngKnowledgeCategoryId;
	}

	public void setKngKnowledgeCategoryId(String kngKnowledgeCategoryId) {
		this.kngKnowledgeCategoryId = kngKnowledgeCategoryId;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public String getReleaseMethod() {
		return releaseMethod;
	}

	public void setReleaseMethod(String releaseMethod) {
		this.releaseMethod = releaseMethod;
	}

}
